home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
MIDI_MAN
/
CMIDICLI.H
< prev
next >
Wrap
Text File
|
1992-03-07
|
2KB
|
46 lines
/*
*--- CMIDIClient.h ----------------------------------------------------------
* Copyright ⌐ Paul Ferguson, 1990, 1991, 1992. All rights reserved.
*
* For use with THINK C 5.0 and the THINK Class Library.
*
* Description:
* A MIDI Manager client object. Every application which creates MIDI Manager
* objects must first create a CMIDIClient object, gMIDIClient. You should
* not create additional CMIDIClient objects.
*
* Refer to the CMIDI Programmer's Manual for a complete desciption of
* these objects and methods.
*
*----------------------------------------------------------------------------
*/
#pragma once
#include <CObject.h>
#include <MIDI.h> // ÑÑÑ╩!!! DANGER, WILL ROBINSON !!! ÑÑÑ
// You must use 2.0 version of MIDI.h, not the
// one included with THINK C 5.0 (ver 1.2).
// Otherwise, you will get compile and link errors.
#define ErrNoMIDI -249 // MIDI MANAGER DRIVER NOT PRESENT. (It happens more
// often than you think╔) Minus 249 is one more than
// the first real MIDI Manager error code, and does
// not appear to be used presently.
class CMIDIClient : public CObject
{
public:
OSErr IMIDIClient(short theIconID);
virtual void Dispose(void);
virtual MIDIIDListHdl GetPorts(void);
virtual Boolean WorldChanged(void);
virtual unsigned long GetVerNum(void);
virtual unsigned short GetShortVerNum(void);
private:
unsigned long midiMgrVerNum; // Version number. Also used to
// determine whether signed in (if non-zero)
};
// end of CMIDIClient.h